﻿using RedBlackCS;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace UnitTests
{
    
    
    /// <summary>
    ///This is a test class for RedBlackTest and is intended
    ///to contain all RedBlackTest Unit Tests
    ///</summary>
    [TestClass()]
    public class RedBlackTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for RedBlack Constructor
        ///</summary>
        [TestMethod()]
        public void RedBlackConstructorTest()
        {
            string strIdentifier = string.Empty; // TODO: Initialize to an appropriate value
            RedBlack target = new RedBlack(strIdentifier);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for RedBlack Constructor
        ///</summary>
        [TestMethod()]
        public void RedBlackConstructorTest1()
        {
            RedBlack target = new RedBlack();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Add
        ///</summary>
        [TestMethod()]
        public void AddTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            IComparable key = null; // TODO: Initialize to an appropriate value
            object data = null; // TODO: Initialize to an appropriate value
            target.Add(key, data);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Clear
        ///</summary>
        [TestMethod()]
        public void ClearTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            target.Clear();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Delete
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void DeleteTest()
        {
            RedBlack_Accessor target = new RedBlack_Accessor(); // TODO: Initialize to an appropriate value
            RedBlackNode z = null; // TODO: Initialize to an appropriate value
            target.Delete(z);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Elements
        ///</summary>
        [TestMethod()]
        public void ElementsTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.Elements();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Elements
        ///</summary>
        [TestMethod()]
        public void ElementsTest1()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            bool ascending = false; // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.Elements(ascending);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Equals
        ///</summary>
        [TestMethod()]
        public void EqualsTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            object obj = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.Equals(obj);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetData
        ///</summary>
        [TestMethod()]
        public void GetDataTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            IComparable key = null; // TODO: Initialize to an appropriate value
            object expected = null; // TODO: Initialize to an appropriate value
            object actual;
            actual = target.GetData(key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetEnumerator
        ///</summary>
        [TestMethod()]
        public void GetEnumeratorTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetHashCode
        ///</summary>
        [TestMethod()]
        public void GetHashCodeTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetHashCode();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMaxKey
        ///</summary>
        [TestMethod()]
        public void GetMaxKeyTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            IComparable expected = null; // TODO: Initialize to an appropriate value
            IComparable actual;
            actual = target.GetMaxKey();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMaxValue
        ///</summary>
        [TestMethod()]
        public void GetMaxValueTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            object expected = null; // TODO: Initialize to an appropriate value
            object actual;
            actual = target.GetMaxValue();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMinKey
        ///</summary>
        [TestMethod()]
        public void GetMinKeyTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            IComparable expected = null; // TODO: Initialize to an appropriate value
            IComparable actual;
            actual = target.GetMinKey();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetMinValue
        ///</summary>
        [TestMethod()]
        public void GetMinValueTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            object expected = null; // TODO: Initialize to an appropriate value
            object actual;
            actual = target.GetMinValue();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for IsEmpty
        ///</summary>
        [TestMethod()]
        public void IsEmptyTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.IsEmpty();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Keys
        ///</summary>
        [TestMethod()]
        public void KeysTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.Keys();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Keys
        ///</summary>
        [TestMethod()]
        public void KeysTest1()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            bool ascending = false; // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.Keys(ascending);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Remove
        ///</summary>
        [TestMethod()]
        public void RemoveTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            IComparable key = null; // TODO: Initialize to an appropriate value
            target.Remove(key);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RemoveMax
        ///</summary>
        [TestMethod()]
        public void RemoveMaxTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            target.RemoveMax();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RemoveMin
        ///</summary>
        [TestMethod()]
        public void RemoveMinTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            target.RemoveMin();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RestoreAfterDelete
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void RestoreAfterDeleteTest()
        {
            RedBlack_Accessor target = new RedBlack_Accessor(); // TODO: Initialize to an appropriate value
            RedBlackNode x = null; // TODO: Initialize to an appropriate value
            target.RestoreAfterDelete(x);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RestoreAfterInsert
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Algorithms.exe")]
        public void RestoreAfterInsertTest()
        {
            RedBlack_Accessor target = new RedBlack_Accessor(); // TODO: Initialize to an appropriate value
            RedBlackNode x = null; // TODO: Initialize to an appropriate value
            target.RestoreAfterInsert(x);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RotateLeft
        ///</summary>
        [TestMethod()]
        public void RotateLeftTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackNode x = null; // TODO: Initialize to an appropriate value
            target.RotateLeft(x);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for RotateRight
        ///</summary>
        [TestMethod()]
        public void RotateRightTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackNode x = null; // TODO: Initialize to an appropriate value
            target.RotateRight(x);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Size
        ///</summary>
        [TestMethod()]
        public void SizeTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Size();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.ToString();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Values
        ///</summary>
        [TestMethod()]
        public void ValuesTest()
        {
            RedBlack target = new RedBlack(); // TODO: Initialize to an appropriate value
            RedBlackEnumerator expected = null; // TODO: Initialize to an appropriate value
            RedBlackEnumerator actual;
            actual = target.Values();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
